package com.bwda.dsrs.filecenter.service;

import com.bwda.dsrs.filecenter.domain.form.uploadsetting.UploadSettingForm;
import com.bwda.dsrs.filecenter.domain.vo.uploadsetting.UploadSettingCheckVo;
import com.bwda.dsrs.filecenter.domain.vo.uploadsetting.UploadSettingVo;

/**
 * 上传限制管理
 *
 * @author liangjianyong
 * @date 2019/5/17
 */
public interface UploadSetttingService {

    /**
     * 查询配置
     * @return
     */
    UploadSettingVo query();

    /**
     * 更新配置
     * @param uploadSettingForm
     */
    void update(UploadSettingForm uploadSettingForm);

    /**
     * 上传检查
     * @param fileType
     * @param size KB
     * @return
     */
    UploadSettingCheckVo checkUpload(String fileType,Integer size);

}
